package org.cloudie.docs.editor.client.commands.generic;

import org.cloudie.docs.editor.client.commands.Command;

public class WindowMoveCommand extends Command {

  public final static int serialUid = 135;
  
  private String windowId;
  private int newX, newY, newWidth, newHeight;
  private boolean hasMoved, hasResized;
  
  public WindowMoveCommand(String windowId, int newX, int newY,
	  int newWidth, int newHeight, boolean hasMoved, boolean hasResized) {
	super("Move window.");
	this.windowId = windowId;
	this.newWidth = newWidth;
	this.newHeight = newHeight;
	this.newX = newX;
	this.newY = newY;
	this.hasMoved = hasMoved;
	this.hasResized = hasResized;
  }

  public int getNewX() {
    return newX;
  }
  
  public void setNewX(int newX) {
    this.newX = newX;
  }

  public int getNewY() {
    return newY;
  }

  public void setNewY(int newY) {
    this.newY = newY;
  }

  public String getWindowId() {
    return windowId;
  }

  public void setWindowId(String windowId) {
    this.windowId = windowId;
  }

  public int getNewWidth() {
    return newWidth;
  }

  public void setNewWidth(int newWidth) {
    this.newWidth = newWidth;
  }

  public int getNewHeight() {
    return newHeight;
  }

  public void setNewHeight(int newHeight) {
    this.newHeight = newHeight;
  }

  public boolean isHasMoved() {
  return hasMoved;
  }

  public void setHasMoved(boolean hasMoved) {
    this.hasMoved = hasMoved;
  }

  public boolean isHasResized() {
    return hasResized;
  }

  public void setHasResized(boolean hasResized) {
    this.hasResized = hasResized;
  }

  @Override
  public int getCommandId() {
    return serialUid;
  }

}
